import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";



const routes:Array<RouteRecordRaw>=[
    {
        path:'/',
        name:'index',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/LevelAdd',
        name:'LevelAdd',
        component:()=>import('../views/LevelAdd.vue')
    },
    {
        path:'/LevelShow',
        name:'LevelShow',
        component:()=>import('../views/LevelShow.vue')
    },
    {
        path:'/MeberAdd',
        name:'MeberAdd',
        component:()=>import('../views/MeberAdd.vue')
    },
    {
        path:'/MeberShow',
        name:'MeberShow',
        component:()=>import('../views/MeberShow.vue')
    },
    {
        path:'/MeberXqing/:id',
        name:'MeberXqing',
        component:()=>import('../views/MeberXqing.vue')
    },
    {
        path:'/MeberUpdjifen/:id',
        name:'MeberUpdjifen',
        component:()=>import('../views/MeberUpdjifen.vue')
    },
    {
        path:'/MeberChongzhi/:id',
        name:'MeberChongzhi',
        component:()=>import('../views/MeberChongzhi.vue')
    },
    {
        path:'/QuanyiAdd',
        name:'QuanyiAdd',
        component:()=>import('../views/QuanyiAdd.vue')
    },
    {
        path:'/QuanyiShow',
        name:'QuanyiShow',
        component:()=>import('../views/QuanyiShow.vue')
    },
    {
        path:'/QuanyiUpd/:id',
        name:'QuanyiUpd',
        component:()=>import('../views/QuanyiUpd.vue')
    },
    {
        path:'/FenpeiQuanyi/:id',
        name:'FenpeiQuanyi',
        component:()=>import('../views/FenpeiQuanyi.vue')
    }
]


const router=createRouter({
    history:createWebHistory(),
    routes
})


export default router
